package com.wisnews.mapper.sys;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.wisnews.pojo.sys.entity.VisitLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuyd
 * @since 2021-02-08
 */
@Mapper
public interface VisitLogMapper extends BaseMapper<VisitLog> {

    @Select(" SELECT a.`log_id` , a.`thread_id` , a.`ip_addr` , a.`url` , a.`http_method` , a.`visit_controller_method` , a.`time_cost` , a.`os` , a.`browser` " +
            " , a.`user_agent` , a.`create_time` FROM `t_sys_visit_log` a ${ew.customSqlSegment} ")
    IPage<VisitLog> qureyList(@Param(Constants.WRAPPER) Wrapper<VisitLog> wrapper, IPage iPage);
}
